import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '标签组名称',
    align:"center",
    dataIndex: 'name'
   },
   {
    title: '组状态',
    align:"center",
    dataIndex: 'status',
     customRender: ({ record }) => {
      // 0 启用，1 禁用
       // @ts-ignore
       return record.status?'禁用':'启用';
     },
   }
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '数据库自增',
    field: 'autoId',
    component: 'Input',
    show:false,
  },
  {
    label: '标签组名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '组状态',
    field: 'status',
    component: 'Select',
    componentProps: {
      options: [
        {
          label: '启用',
          value: '0',
          key: '0',
        },
        {
          label: '禁用',
          value: '1',
          key: '1',
        },
      ],
    },
  }
];



/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
  return formSchema;
}
